//
//  RHBleCmdManager.h
//  RuiHeAppApp
//
//  Created by bill on 2024/4/27.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
@class RHLocalSettingModel;
@interface RHBleCmdManager : NSObject


+ (RHBleCmdManager *)shareMnger;

///读取设备信息
-(void)readDeviceInfoFromBle:(NSArray*)cmdArray;
///设置设备信息
-(void)writeDeviceInfoFromBle:(NSArray*)cmdArray;
///发送单个指令
-(void)readDeviceInfoWithCmdModel:(RHLocalSettingModel*)cmdModel;

/// 在没有通讯的情况下两分钟发送一次指令,设备在5分钟没有通讯的情况下会断开蓝牙,切到wifi模式
-(void)startHeartTimer;
-(void)stopHeartTimer;
//心跳包指令
-(void)sendHeartCommand:(RHLocalSettingModel*)heartModel;

///停止命令超时计时
-(void)cancelTimeOutAction;
///移除所有命令
-(void)removeAllCommand;
@end

NS_ASSUME_NONNULL_END
